#ifndef ADDALARMDIALOG_H
#define ADDALARMDIALOG_H

#include <QDialog>
#include "opcuanodeselect.h"

namespace Ui {
class AddAlarmDialog;
}

class AddAlarmDialog : public QDialog {
    Q_OBJECT

  public:
    explicit AddAlarmDialog(QOpcUaClient *client, QWidget *parent = nullptr);
    ~AddAlarmDialog();


  private slots:
    void on_btn_addOpcUaNode_clicked();
    void on_btn_add_clicked();
    void dataChanged();

    void on_btn_close_clicked();

  signals:
    void addItem(bool enable, QString browName, QString nodeId, QString condition, QString condValue, QString voiceTxt, QString interval, bool showFlag);

  private:
    Ui::AddAlarmDialog *ui;
    QOpcUaClient *m_client;
    OpcUaNodeSelect *nodeSelDialog;

    QString getValue(int role);
};

#endif // ADDALARMDIALOG_H
